﻿using System.Collections.Generic;
using System.Collections.ObjectModel;
using Mal.Balades.Admin.Services;

namespace Mal.Balades.Admin.ViewModels.VisitViewModels.Edit.Data
{
    public class SaveVisitObject:ISaveVisitObject
    {
        private List<IInformation> informationsList ;
         private List<IPicture> picturesList ;

        public SaveVisitObject()
        {
            informationsList = new List<IInformation>();
            picturesList = new List<IPicture>();
            Visit = new VisitAdmin();
        }

        public void AddPicture(IPicture picture)
        {
            this.picturesList.Add(picture);
        }

        public void AddInformation(IInformation information)
        {
            this.informationsList.Add(information);
        }
        #region ISaveVisitObject Members

        public ReadOnlyCollection<IInformation> Informations { get { return new ReadOnlyCollection<IInformation>(informationsList); } }

        public ReadOnlyCollection<IPicture> Pictures { get { return new ReadOnlyCollection<IPicture>(picturesList); } }

        
        public IVisitAdmin Visit { get; set; }

        #endregion
    }
}
